<ul class="image_list">
	!{foreach from=$images item=img}
	<li><img src="!{res file=$img.path thumb=80x80}" img_id="!{$img._id}"/></li>
	!{foreachelse}
	<li><img src="!{res file='images/no_pic.jpg' thumb=80x80}"/></li>
	!{/foreach}
</ul>
<div class="pager">
	<a href="javascript:void(0);" onclick="load_img_list('!{$page_info.first_link}')">首页</a>
	!{if $page_info.pre_link}
	<a href="javascript:void(0);" onclick="load_img_list('!{$page_info.pre_link}')">上一页</a>
	!{/if}
	!{foreach from=$page_info.page_links item=page key=p}
		!{if $page_info.page eq $p}
		<span class="cur_page">!{$p}</span>
		!{else}
		<a href="javascript:void(0);" onclick="load_img_list('!{$page}')">!{$p}</a>
		!{/if}
	!{/foreach}
	!{if $page_info.next_link}
	<a href="javascript:void(0);" onclick="load_img_list('!{$page_info.next_link}')">下一页</a>
	!{/if}
	<a href="javascript:void(0);" onclick="load_img_list('!{$page_info.last_link}')">尾页</a>
	!{$page_info.page} / !{$page_info.page_count} 
	总共!{$page_info.total}条记录
</div>
<script>
$(function(){
	//选择图片
	$("#remote_img .image_list li").click(function(){
		var img = $(this).find('img');
		var img_id = $(img).attr('img_id');
		if(img_id == null)return;
		if($("#selected_img_dl dd img[img_id='"+img_id+"']").length)return;
		var src = $(img).attr('src');
		add_to_selected(img_id, src);
	}).find("img").auto_img();
	
	//
});
</script>